//
//  LTView.m
//  通讯录
//
//  Created by dllo on 16/1/12.
//  Copyright © 2016年 YYL. All rights reserved.
//

#import "LTView.h"

@implementation LTView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 20, 160, 160)];
//        self.headImageView.backgroundColor = [UIColor redColor];
//        [self.headImageView setImage:[UIImage imageNamed:@"1"]];
        
        [self addSubview:self.headImageView];
        [self.headImageView release];
        
        UIImageView *image1 = [[UIImageView alloc] initWithFrame:CGRectMake(-10, 0, 200, 200)];
        image1.image = [UIImage imageNamed:@"9"];
        
        [self addSubview:image1];
        [image1 release];
        
        
        
        self.name = [[UILabel alloc] initWithFrame:CGRectMake(190, 20, 200, 60)];
        self.name.textAlignment = NSTextAlignmentCenter;
        self.name.font = [UIFont systemFontOfSize:40];
//        self.name.backgroundColor = [UIColor redColor];
        
        [self addSubview:self.name];
        [self.name release];
        
        UIImageView *image2 = [[UIImageView alloc] initWithFrame:CGRectMake(180, 20, 220, 65)];
        image2.image = [UIImage imageNamed:@"9"];
        
        [self addSubview:image2];
        [image2 release];
        

        
        
        self.phone = [[UILabel alloc] initWithFrame:CGRectMake(190, 100, 200, 60)];
        self.phone.textAlignment = NSTextAlignmentCenter;
        self.phone.font = [UIFont systemFontOfSize:40];
//        self.phone.backgroundColor = [UIColor redColor];
        
        [self addSubview:self.phone];
        [self.phone release];
        
        UIImageView *image3 = [[UIImageView alloc] initWithFrame:CGRectMake(180, 100, 220, 65)];
        image3.image = [UIImage imageNamed:@"9"];
        
        [self addSubview:image3];
        [image3 release];
        
        UILabel *blankLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 199, self.frame.size.width - 40, 1)];
        blankLabel.backgroundColor = [UIColor blackColor];
        
        [self addSubview:blankLabel];
        [blankLabel release];
        
        
    }
    return self;
}



@end
